package com.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.nio.channels.Pipe;
import java.util.List;
import java.util.Map;

/**
 * @author WZ
 * @version 1.0
 * @date 2021/8/23 10:04
 */
@JsonIgnoreProperties(value = {"handler"})
public class LoginUser implements Serializable {
    private  String userId;
    private  String username;
    private List<UserRole> userRoles;

    public List<UserRole> getUserRoles() {
        return userRoles;
    }

    public void setUserRoles(List<UserRole> userRoles) {
        this.userRoles = userRoles;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public LoginUser(){

    }

    public LoginUser(String userId, String username) {
        this.userId = userId;
        this.username = username;
    }

    public LoginUser(String userId, String username, List<UserRole> userRoles) {
        this.userId = userId;
        this.username = username;
        this.userRoles = userRoles;
    }
}
